#!/bin/bash -
# Contributor: Victor Mishel Vera Sanchez (mishudark) <moonsadly@gmail.com>

[ -x /usr/bin/apt-get ] && {
    INSTALL_LAYOUT='--install-layout deb'
    python -c 'import webkit, keybinder, pynotify, DistUtilsExtra.command' \
    || sudo apt-get install python-webkit python-notify python-keybinder python-distutils-extra
}

python setup.py build_i18n -m
python setup.py build
sudo python setup.py install $INSTALL_LAYOUT --record record.log
